import winston from 'winston'

const logger = winston.createLogger({
  level: 'info',
  format: winston.format.json(),
  transports: [
    new winston.transports.Console(),
  ],
})

export default function (req, res, next) {
  logger.info(`Request URL: ${req.url}`)
  logger.info(`Request Method: ${req.method}`)
  next()
} 